#创建镜像 docker build -t nacos:1.4.6 .
#运行镜像 docker run -di -p 8848:8848 -v /dockers/nacos1:/nacos --name nacos nacos:1.4.6
# docker run -di -p 8848:8848 --name nacos nacos:1.4.6
#server端  --restart=always

FROM openjdk:21-oracle
MAINTAINER aat
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /nacos
ADD ./nacos .
EXPOSE 8848
ENTRYPOINT [ "sh", "-c", "/nacos/bin/startup.sh -m standalone && tail -f /nacos/logs/start.out" ]